// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 添加新闻 */
export async function createPackage(options) {
  return request<{
    data;
  }>('/api/mjCombo/add', {
    method: 'POST',
    data:(options || {}),
  });
}

/** 删除新闻 */
export async function deletePackage(options) {
    return request<{
      data;
    }>('/api/sysUser/delete', {
      method: 'POST',
      ...(options || {}),
    });
  }
  
  /** 新闻列表 */
export async function fetchPackageList(options) {
    console.log(options,'--')
   const result = await request('/api/sysUser/queryPage', {
      method: 'POST',
      data: options,
    });
    return { data: result.data.records, success: true }
  }
  
  
export async function updatePackage(options) {
    console.log(options)
    return request<{
      data;
    }>('/api/sysUser/update', {
      method: 'POST',
      data:(options || {}),
    });
  }
